<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-pipeline.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">logagent-pipeline.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="logagent-plugin_8h_source.html">logagent-plugin.h</a>&quot;</code><br />
</div>
<p><a href="logagent-pipeline_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpipeline__t.html">pipeline_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a69aaad933972ef405f3ac7354bbf2eea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#a69aaad933972ef405f3ac7354bbf2eea">PIPELINE_SLEEP_TIME</a>&#160;&#160;&#160;1000</td></tr>
<tr class="separator:a69aaad933972ef405f3ac7354bbf2eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb4bae73924bf21015c0d76ffb4e1f0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#a1fb4bae73924bf21015c0d76ffb4e1f0">MAX_PIPELINE_NUMS</a>&#160;&#160;&#160;10</td></tr>
<tr class="separator:a1fb4bae73924bf21015c0d76ffb4e1f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53dc70eda096b9130420a6f981d5d600"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#a53dc70eda096b9130420a6f981d5d600">PIPELINE_JSON_SIZE</a>&#160;&#160;&#160;(<a class="el" href="logagent_8h.html#a1fb4bae73924bf21015c0d76ffb4e1f0">MAX_PIPELINE_NUMS</a> * <a class="el" href="logagent-plugin_8h.html#a31c206e0aa4c218b9d0bb1eeb6fb52b0">PLUGIN_JSON_SIZE</a>)</td></tr>
<tr class="separator:a53dc70eda096b9130420a6f981d5d600"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a97131102d541c09b411410d8485f0c55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#a97131102d541c09b411410d8485f0c55">logagent_pipeline_work</a> (<a class="el" href="structpipeline__t.html">pipeline_t</a> *pipeline)</td></tr>
<tr class="separator:a97131102d541c09b411410d8485f0c55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa88ec8513a5e59c6c3f7304c95cd69d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#aa88ec8513a5e59c6c3f7304c95cd69d7">logagent_pipeline_element_config_load</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list, struct <a class="el" href="structlist__head.html">list_head</a> *pipeline_list)</td></tr>
<tr class="separator:aa88ec8513a5e59c6c3f7304c95cd69d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca6265fe294853f11a239b3e7f700102"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#aca6265fe294853f11a239b3e7f700102">logagent_pipeline_element_config_unload</a> (struct <a class="el" href="structlist__head.html">list_head</a> *pipeline_list)</td></tr>
<tr class="separator:aca6265fe294853f11a239b3e7f700102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee758289454af1e3edbe26e45297fd2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#aee758289454af1e3edbe26e45297fd2a">logagent_pipeline_config_load</a> (struct <a class="el" href="structlist__head.html">list_head</a> *pipeline_list, const char *json)</td></tr>
<tr class="separator:aee758289454af1e3edbe26e45297fd2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f57dff0f18754e4ffaf2ae89c6e015a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-pipeline_8h.html#a5f57dff0f18754e4ffaf2ae89c6e015a">logagent_pipeline_config_unload</a> (struct <a class="el" href="structlist__head.html">list_head</a> *pipeline_list)</td></tr>
<tr class="separator:a5f57dff0f18754e4ffaf2ae89c6e015a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a1fb4bae73924bf21015c0d76ffb4e1f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fb4bae73924bf21015c0d76ffb4e1f0">&#9670;&nbsp;</a></span>MAX_PIPELINE_NUMS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_PIPELINE_NUMS&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a53dc70eda096b9130420a6f981d5d600"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53dc70eda096b9130420a6f981d5d600">&#9670;&nbsp;</a></span>PIPELINE_JSON_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PIPELINE_JSON_SIZE&#160;&#160;&#160;(<a class="el" href="logagent_8h.html#a1fb4bae73924bf21015c0d76ffb4e1f0">MAX_PIPELINE_NUMS</a> * <a class="el" href="logagent-plugin_8h.html#a31c206e0aa4c218b9d0bb1eeb6fb52b0">PLUGIN_JSON_SIZE</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a69aaad933972ef405f3ac7354bbf2eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69aaad933972ef405f3ac7354bbf2eea">&#9670;&nbsp;</a></span>PIPELINE_SLEEP_TIME</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PIPELINE_SLEEP_TIME&#160;&#160;&#160;1000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="aee758289454af1e3edbe26e45297fd2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee758289454af1e3edbe26e45297fd2a">&#9670;&nbsp;</a></span>logagent_pipeline_config_load()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_pipeline_config_load </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>pipeline_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load config for pipeline from json </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pipeline_list</td><td>a pipeline list </td></tr>
    <tr><td class="paramname">json</td><td>the json config string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5f57dff0f18754e4ffaf2ae89c6e015a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f57dff0f18754e4ffaf2ae89c6e015a">&#9670;&nbsp;</a></span>logagent_pipeline_config_unload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_pipeline_config_unload </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>pipeline_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>unload config for pipeline </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pipeline_list</td><td>a pipeline list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa88ec8513a5e59c6c3f7304c95cd69d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa88ec8513a5e59c6c3f7304c95cd69d7">&#9670;&nbsp;</a></span>logagent_pipeline_element_config_load()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_pipeline_element_config_load </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>pipeline_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load pipeline's elements config </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>logagent's plugin store </td></tr>
    <tr><td class="paramname">pipeline_list</td><td>a pipeline list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aca6265fe294853f11a239b3e7f700102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca6265fe294853f11a239b3e7f700102">&#9670;&nbsp;</a></span>logagent_pipeline_element_config_unload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_pipeline_element_config_unload </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>pipeline_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>unload pipeline's elements config </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pipeline_list</td><td>a pipeline list </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a97131102d541c09b411410d8485f0c55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97131102d541c09b411410d8485f0c55">&#9670;&nbsp;</a></span>logagent_pipeline_work()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_pipeline_work </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpipeline__t.html">pipeline_t</a> *&#160;</td>
          <td class="paramname"><em>pipeline</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>pipeline thread work wrapper </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pipeline</td><td>one pipeline to run</td></tr>
  </table>
  </dd>
</dl>
<p>this function will run init, work and exit for all elements, just create a thread and send a pipeline argument in. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
